import React from 'react';
import { Button } from 'antd';

const UserToolsBar = (props) => {

  const { addSave, onDelete } = props;

  const iconStyle = {
    verticalAlign: "bottom",
    marginRight: "5px",
  }

  return (
    <div style={{marginTop: "15px"}}>
      <Button type="primary" size="default" icon={<i className="ri-add-line" style={iconStyle}></i>} onClick={addSave}>新增</Button>
      <Button danger style={{ marginLeft: "15px" }} onClick={onDelete}><i className={"ri-delete-bin-2-fill"} style={iconStyle} />删除</Button>
    </div>
  );
};

export default UserToolsBar;
